package day04.lambda;

public class Lian05 {
    public static void main(String[] args) {
        playGame2(new Game2() {
            @Override
            public void play() {
                System.out.println("lol");
            }
        });
        playGame2(()->{
            System.out.println("cf");
        });
        playGame2(()->
            System.out.println("dnf")
        );
    }
    public static void playGame2(Game2 game2){
        game2.play();
    }
}

interface Game2{
    void play();
}
